    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    </head>
    <body>
        <div id="app">
            {{ name }}
            {{ age }}
            {{ msg.ag }}
            {{ msg.name }}
            <button @click = "age++">加</button>
            <button @click = "age--">减</button>
            <button @click = "name = '李'">修改name为李</button>
            <button @click = "msg.ag = 'ming'">增加ag为ming</button>
            <button @click = "delete msg.name">删除msg数据</button>
    
        </div>
    </body>
    </html>
    <script>
        new Vue({
            data:{
                name:"xiaohong",
                age:18,
                msg:{
                    name:'hong'
                }
            }
        }).$mount('#app')
    </script>